//---------------------------------------------------------------------------

#ifndef STUNELoanH
#define STUNELoanH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <ADODB.hpp>
#include <DB.hpp>
#include <jpeg.hpp>
//---------------------------------------------------------------------------
class TForm_Loan : public TForm
{
__published:	// IDE-managed Components
	TListBox *ListOfStocks;
	TListBox *ListPurchase;
	TButton *btnBorrow;
	TButton *btnBroken;
	TPanel *Panel_BottomBar;
	TLabel *lblStock;
	TLabel *lblLoans;
	TButton *btnCancel;
	TButton *btnOpenAccount;
	TLabeledEdit *edtGuestId;
	TADOConnection *ADOConnectionDB;
	TADOQuery *ADOQueryDB;
	TButton *btnSortName;
	TButton *btnSortPrice;
	TButton *btnSortKind;
	TLabel *lblUnit;
	TLabel *lblKind;
	TLabel *lblPrice;
	TLabel *lblStockDeposit;
	TEdit *edtQuantity;
	TLabel *lblQuantity;
	TButton *btnReturn;
	TLabel *lblQFee;
	TLabel *lblQDeposit;
	TLabel *lblQTotal;
	TLabel *lblTotal;
	TLabel *lblDeposit;
	TLabel *lblFee;
	TLabel *lblQTitle;
	TLabel *lblSelectedItem;
	TPanel *Panel_TopBar;
	TImage *Image1;
	TLabeledEdit *edtShopID;
	TButton *btnOpenShop;
	void __fastcall btnOpenShopClick(TObject *Sender);
	void __fastcall btnBorrowClick(TObject *Sender);
	void __fastcall btnBrokenClick(TObject *Sender);
	void __fastcall btnOpenGuestAccountClick(TObject *Sender);
	void __fastcall edtQuantityKeyPress(TObject *Sender, char &Key);
	void __fastcall btnCancelClick(TObject *Sender);
	void __fastcall btnSortNameClick(TObject *Sender);
	void __fastcall btnSortPriceClick(TObject *Sender);
	void __fastcall btnSortKindClick(TObject *Sender);
	void __fastcall btnReturnClick(TObject *Sender);
	void __fastcall ListOfStocksClick(TObject *Sender);
	void __fastcall ListPurchaseClick(TObject *Sender);
	void __fastcall edtQuantityClick(TObject *Sender);
	void __fastcall edtQuantityChange(TObject *Sender);
private:	// User declarations
public:		// User declarations
	__fastcall TForm_Loan(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm_Loan *Form_Loan;
//---------------------------------------------------------------------------
#endif
